@import '../style/index';

.c7ncd-deployment-service-detail {
  .service-detail-port {
    &-list {
      list-style: none;
      padding: 0;
      margin: 0 0 0.3rem;
      display: flex;
      align-items: center;

      .service-detail-arrow-item {
        margin: 0 0.2rem;
      }
    }

    &-item {
      font-size: 0.12rem;
      color: var(--text-color3);
      line-height: 0.17rem;

      &-text {
        display: block;
        font-size: 0.14rem;
        font-weight: 500;
        color: var(--text-color);
        line-height: 0.2rem;
        margin-bottom: 0.1rem;
      }

      &-arrow {
        display: block;
        transform: scale(2.5);
        margin: 0 0.1rem;
        color: rgba(0, 0, 0, 0.2);
      }
    }
  }

  .service-detail-load {
    &-list {
      list-style: none;
      padding: 0;
      margin: 0 0 0.4rem;
      display: flex;
      align-items: center;
    }

    &-item {
      border-right: 1px dashed rgba(0, 0, 0, 0.12);
      padding: 0 0.2rem;
      width: 2.44rem;
      font-size: 0.12rem;
      line-height: 0.2rem;

      &:last-child {
        border-right: none;
      }

      &:first-child {
        padding: 0;
      }

      &-key {
        color: var(--text-color3);
        width: 0.56rem;
        display: inline-block;
      }

      &-code {
        font-weight: 500;
        display: block;
      }

      &-status {
        display: inline-block;
      }
    }

    &-item-status-dot {
      width: 0.08rem;
      height: 0.08rem;
      display: inline-block;
      background-color: #00bfa5;
      border-radius: 50%;
      margin: 0.02rem;

      &-failed {
        background-color: #f44336;
      }

      &-operating {
        background-color: #4d90fe;
      }

      &-deleted {
        background-color: rgba(0, 0, 0, 0.4);
      }
    }
  }

  .service-detail-pod {
    &-list {
      list-style: none;
      padding: 0;
      margin: 0 0 0.4rem;
      display: flex;
      align-items: center;
    }

    &-item {
      border-right: 1px dashed rgba(0, 0, 0, 0.12);
      padding: 0 0.2rem;
      font-size: 0.12rem;
      line-height: 0.2rem;
      &:last-child {
        border-right: none;
      }

      &:first-child {
        padding: 0 0.2rem 0 0;
      }

      &-key {
        color: var(--text-color3);
        display: inline-block;
      }

      &-time {
        color: var(--text-color3);
      }

      &-name {
        font-weight: 500;
        display: block;
      }

      &-icon {
        font-size: 0.2rem;
        color: #3f51b5;
      }
    }

    &-echarts {
      display: flex;
    }

    &-registry {
      display: flex;
    }
  }

  .service-detail-endpoints {
    width: 0.6rem;
    display: inline-block;
    color: var(--text-color3);
  }
}
.c7ncd-deployment-detail-section-li {
  display: flex;
  .ingress-detail-annotation {
    width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    &-value {
      width: 60%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      word-break: keep-all;
    }
  }
}
// .c7ncd-deployment-detail-content-section-titles {
//   margin-top: 20px;
// }
